﻿<%@ Page Title="Add Student" Language="C#" MasterPageFile="~/Views/Shared/UserMaster.master"
    Inherits="System.Web.Mvc.ViewPage<Eacademy.Domain.Models.QuizViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit Quiz
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>
        Edit Quiz</h3>
    <% using (Html.BeginForm("Edit", "Quizzes", FormMethod.Post, new { autocomplete = "off" }))
       {%>
    <div class="forms-elements">
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.Description)%>
            </div>
            <div class="form-element">
                <div class="textbox-xmedium-form">
                    <%: Html.TextBoxFor(model => model.Description, new { @class = "textbox-xmedium-field" })%>
                </div>
            </div>
            <div class="form-error form-error-150">
                <%: Html.ValidationMessageFor(model => model.Description)%>
            </div>
        </div>
        <br />
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.TotalItems)%>
            </div>
            <div class="form-element">
                <div class="textbox-form">
                    <%: Html.TextBoxFor(model => model.TotalItems, new { @class = "textbox-field" })%>
                </div>
            </div>
            <div class="form-error form-error-150">
                <%: Html.ValidationMessageFor(model => model.TotalItems)%>
            </div>
        </div>
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.PassingScore)%>
            </div>
            <div class="form-element">
                <div class="textbox-form">
                    <%: Html.TextBoxFor(model => model.PassingScore, new { @class = "textbox-field" })%>
                </div>
            </div>
            <div class="form-error form-error-150">
                <%: Html.ValidationMessageFor(model => model.PassingScore)%>
            </div>
        </div>
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.TimeLimit)%>
            </div>
            <div class="form-element">
                <div class="textbox-form">
                    <%: Html.TextBoxFor(model => model.TimeLimit, new { @class = "textbox-field" })%>
                </div>
            </div>
            <div class="form-error form-error-150">
                <%: Html.ValidationMessageFor(model => model.TimeLimit)%>
            </div>
        </div>
        <div class="form-wrapper">
            <div class="form-label">
            </div>
            <div class="form-element">
               <%:Html.HiddenFor(model => model.QuizId) %>
                <%:Html.HiddenFor(model => model.MentorUserId) %>
                <input type="submit" value="Save" class="button-style" />
            </div>
        </div>
    </div>
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
